
{{ define "cnt/ing" }}
    <!DOCTYPE html>
    <html>
    <head>
        <meta charset="utf-8" />
        <meta name="viewport" content="width=device-width, initial-scale=1.0" />
        <link rel="shortcut icon" type="image/x-icon" href="/favicon.ico" />
        <!-- Bootstrap core CSS -->
        <link href="/public/dist/css/bootstrap.min.css" rel="stylesheet">
        <!-- Optional Bootstrap Theme -->
        <link href="data:text/css;charset=utf-8," data-href="/public/dist/css/bootstrap-theme.min.css" rel="stylesheet" id="bs-theme-stylesheet">
        <title>{{.Title}} - Go抽奖系统</title>
        <style type="text/css">
            footer {
                border-top: 5px solid seagreen;
                border-bottom: 1px solid #333333;
                /*background-color: #00AA88;*/
                background-color: hsl(209, 51%, 92%);
            }
            .table {
                height: 503px;
            }

            .navbar-brand:hover {
                background-color: #00ccff;
                font-size: 20px;
            }

            .navbar-nav li:hover {
                background-color: #00ccff;
                font-size: 20px;
            }

            body {
                font-family: "Helvetica Neue",Helvetica,Arial,sans-serif;
                font-size: 14px;
                line-height: 1.42857143;
                color: #333;
                background-color: #FFE;
            }

            .table th {
                height: 20px
            }

            .table td {
                height: 20px;
            }

        </style>
    </head>

    <body>
    <nav class="navbar navbar-default">
        <div class="container-fluid">
            <!-- Brand and toggle get grouped for better mobile display -->
            <div class="navbar-header">
                <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1" aria-expanded="false">
                    <span class="sr-only">Toggle navigation</span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                </button>
                <a class="navbar-brand" href="/public/">Go抽奖系统</a>
            </div>

            <!-- Collect the nav links, forms, and other content for toggling -->
            <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
                {{/*<form class="navbar-form navbar-left">*/}}
                {{/*<div class="form-group">*/}}
                {{/*<input type="text" class="form-control" placeholder="Search">*/}}
                {{/*</div>*/}}
                {{/*<button type="submit" class="btn btn-default">Submit</button>*/}}
                {{/*</form>*/}}
                <ul class="nav navbar-nav navbar-right">
                    <li class="dropdown">
                        <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">更多 <span class="caret"></span></a>
                        <ul class="dropdown-menu">
                            <li><a href="#">Action</a></li>
                            <li><a href="#">Another action</a></li>
                            <li><a href="#">Something else here</a></li>
                            <li role="separator" class="divider"></li>
                            <li><a href="#">Separated link</a></li>
                        </ul>
                    </li>
                </ul>
            </div><!-- /.navbar-collapse -->
        </div><!-- /.container-fluid -->
    </nav>
    <div>
        <!-- Render the current template here -->
        <div class="panel-heading">
            (总共 {{.Total}} 条记录)
        </div>

        <table class="table">
            <thead>
            <tr>
                <th>奖品·名称</th>
                <th>奖品·描述</th>
                <th>奖品·上架时间</th>
                <th>奖品·下架时间</th>
                <th>活动时间</th>
            </tr>
            </thead>
            <tbody>
            {{range $i, $data := .Datalist}}

                <tr {{if eq $data.SysStatus 0}}class="success"{{end}}>
                    <td>{{$data.Title}}</td>
                    <td>{{$data.Gdata}}</td>
                    <td>{{FromUnixtime $data.TimeBegin}}</td>
                    <td>{{FromUnixtime $data.TimeEnd}}</td>
                    <td>总共 {{$data.PrizeTime}} 天</td>
                </tr>

            {{end}}
            </tbody>
        </table>




        <hr />
        <footer style="text-align: center;">
            <center>
                <table  width="640" border="0">
                    <tr class="tt">
                        <td align="center" width="80"><a href="#"><font size="1"><b>关于我们&nbsp;&nbsp;&nbsp;&nbsp;|</b></font></a></td>
                        <td align="center" width="80"><a href="#"><font size="1"><b>About&nbsp;&nbsp;&nbsp;&nbsp;|</b></font></a></td>
                        <td align="center" width="80"><a href="#"><font size="1"><b>服务协议&nbsp;&nbsp;&nbsp;&nbsp;|</b></font></a></td>
                        <td align="center" width="80"><a href="#"><font size="1"><b>隐私政策 &nbsp;&nbsp;&nbsp;&nbsp;|</b></font></a></td>
                        <td align="center" width="80"><a href="#"><font size="1"><b>开放平台&nbsp;&nbsp;&nbsp;&nbsp;|</b></font></a></td>
                        <td align="center" width="80"><a href="#"><font size="1"><b>商务洽谈&nbsp;&nbsp;&nbsp;&nbsp;|</b></font></a></td>
                        <td align="center" width="80"><a href="#"><font size="1"><b>招聘&nbsp;&nbsp;&nbsp;&nbsp;|</b></font></a></td>
                        <td align="center" width="80"><a href="#"><font size="1"><b>客服中心&nbsp;&nbsp;&nbsp;&nbsp;</b></font></a></td>
                    </tr>
                </table>
                <p><font size="1"><b>&copy;2022 - Go抽奖系统：&copy;:版权所有，计科三班，黄栋林</b></font></p>
                <address>E-mail:  huangdonglin@qq.com</address>
            </center>
        </footer>
    </div>

    <!-- Bootstrap core JavaScript
    ================================================== -->
    <!-- Placed at the end of the document so the pages load faster -->
    </body>
    </html>
{{ end }}